//
//  YCHomeItemCell.h
//  YCSchool
//
//  Created by yanglinxia on 16/4/26.
//  Copyright © 2016年 yanglinxia. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YCHomeItemCell;

@protocol YCHomeCellDelegate <NSObject>

@optional
- (void)homeItemCell:(UICollectionView *)itemCollectionCell didSelectItemAtIndexPath:(NSIndexPath *)indexPatch;

@end

@interface YCHomeItemCell : UITableViewCell

+ (instancetype)tableViewCellWithTableView:(UITableView *)tableView withIndexPath:(NSIndexPath *)indexPath;

/** 数据源  */
@property (nonatomic, strong) NSArray *items;

- (NSInteger)updateWithModels:(NSArray *)models;

/** 代理 */
@property(weak, nonatomic) id<YCHomeCellDelegate> cellDelegate;

@end
